<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * @MAF
 * Smarty price plugin
 */
function smarty_modifier_price($_price_, $_dotdigits_ = 2, $_sign_ = "\$") {

	return sprintf("%s%s%01.{$_dotdigits_}f", ((float) $_price_ >= 0 ? "" : "-"), $_sign_, abs($_price_));

}

/* vim: set expandtab: */

?>
